<!-- <section>
  <div class="popover">
    <ng-container *ngFor="let item of tagData">
      <li button appDebounceClick (debounceClick)="operation(item)">{{item.label}}</li>
    </ng-container>
  </div>
</section> -->

<ng-container *ngIf="tagData&&tagData.style&&tagData.style === 'tag.AppSimpleDetailTagLogic'; else elseNormalTemplate">
  <ion-list>

    <!--找好店-->
    <ng-container *ngIf="tagData.data.firstFilterBtn">
      <ion-item button lines="inset" appDebounceClick (debounceClick)="operation(tagData.data.firstFilterBtn)">
        <div class="popoverLeftTopBox" [ngStyle]="tagData.data.firstFilterBtnBoxCssStyle|styleFilter">
          <img [src]="tagData.data.firstFilterBtnActionIcon" *ngIf="tagData.data.firstFilterBtnActionIcon"
            [ngStyle]="tagData.data.firstFilterBtnActionIconCssStyle|styleFilter"
            onerror="this.src='assets/fw/home.png'" class="actionIcon" />
          <span class="popoverBtnLabel"
            [ngStyle]="tagData.data.firstFilterBtnLabelCssStyle|styleFilter">{{tagData.data.firstFilterBtnLabel}}</span>
          <ion-badge class="topBadge"
            *ngIf="tagData.data.firstFilterBtnBadgeCount&&tagData.data.firstFilterBtnBadgeCount > 0"
            [ngStyle]="tagData.data.firstFilterBtnBadgeCountCssStyle|styleFilter">
            {{tagData.data.firstFilterBtnBadgeCount}}</ion-badge>
        </div>
      </ion-item>
    </ng-container>

    <!--找好货-->
    <ng-container *ngIf="tagData.data.secondFilterBtn">
      <ion-item button lines="inset" appDebounceClick (debounceClick)="operation(tagData.data.secondFilterBtn)">
        <div class="popoverLeftTopBox" [ngStyle]="tagData.data.secondFilterBtnBoxCssStyle|styleFilter">
          <img [src]="tagData.data.secondFilterBtnActionIcon" *ngIf="tagData.data.secondFilterBtnActionIcon"
            [ngStyle]="tagData.data.secondFilterBtnActionIconCssStyle|styleFilter"
            onerror="this.src='assets/fw/home.png'" class="actionIcon" />
          <span class="popoverBtnLabel"
            [ngStyle]="tagData.data.secondFilterBtnLabelCssStyle|styleFilter">{{tagData.data.secondFilterBtnLabel}}</span>
          <ion-badge class="topBadge"
            *ngIf="tagData.data.secondFilterBtnBadgeCount&&tagData.data.secondFilterBtnBadgeCount > 0"
            [ngStyle]="tagData.data.secondFilterBtnBadgeCountCssStyle|styleFilter">
            {{tagData.data.secondFilterBtnBadgeCount}}</ion-badge>
        </div>
      </ion-item>
    </ng-container>
  </ion-list>
</ng-container>
<ng-template #elseNormalTemplate>
  <ion-list>
    <!--自定义图片按钮菜单-->
    <ng-container *ngFor="let item of tagData">
      <ng-container *ngIf="item.link">
        <ion-item button lines="inset" appDebounceClick (debounceClick)="operation(item)">
          <img [src]="item.link.params?.actionIcon" [ngStyle]="item.link?.params?.actionIconCssStyle|styleFilter"
            onerror="this.src='assets/fw/home.png'" class="actionIcon" />
          <span [ngStyle]="item.link?.params?.labelCssStyle|styleFilter">{{item.label}}</span>
          <ion-badge class="topBadge" *ngIf="item.link?.params?.badgeCount&&item.link?.params?.badgeCount > 0"
            [ngStyle]="item.link?.params?.badgeCssStyle|styleFilter">
            {{item.link?.params?.badgeCount}}</ion-badge>
        </ion-item>
      </ng-container>

      <ng-container *ngIf="item.submit">
        <ion-item button lines="inset" appDebounceClick (debounceClick)="operation(item)">
          <img [src]="item.submit.content?.actionIcon" [ngStyle]="item.submit?.content?.actionIconCssStyle|styleFilter"
            onerror="this.src='assets/fw/home.png'" class="actionIcon" />
          <span [ngStyle]="item.submit?.content?.labelCssStyle|styleFilter">{{item.label}}</span>
          <ion-badge class="topBadge" *ngIf="item.submit?.content?.badgeCount&&item.submit?.content?.badgeCount > 0"
            [ngStyle]="item.submit?.content?.badgeCssStyle|styleFilter">
            {{item.submit?.content?.badgeCount}}</ion-badge>
        </ion-item>
      </ng-container>
    </ng-container>
    <!-- <ion-item lines="none" detail="false" button appDebounceClick (debounceClick)="dismissPopover()">Close</ion-item> -->
  </ion-list>
</ng-template>